<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ page import="dao.Usertemp"%>
<%@ page import="java.util.List"%>
<%@ taglib uri="http://www.tag.com/mytag" prefix="mytag"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<%@ include file="/commonHeader.jsp" %>
	<%@ include file="/commonUserMenu.jsp" %>
  </head>
  
  <body>
 	<% if (null!=request.getAttribute("message")){%>
	<%=request.getAttribute("message")%>.
	<%  };%>
	<mytag:logincheck></mytag:logincheck>
	<% Usertemp user = (Usertemp)request.getSession().getAttribute( "SESSION_USERINFO" );
		if (null!=user){%>
	welcome <%=user.getUsername()%> !
	<%  } else {%>
	not login!
	<%  } %>
	<% List<Usertemp> usertemplist = (List<Usertemp>)request.getAttribute("usertemplist");
		if (null!=usertemplist){
			for (int i = 0; i < usertemplist.size(); i++) {%>
				<br>welcome <%=usertemplist.get(i).getUsername()%>
			<%;}%> 
		<%} else {%>
			no match results!
		<%}%>
    <br>This is my JSP page. <br>
    <%@ include file="/commonFooter.jsp" %>
  </body>
</html>
